import React, { useEffect, useState, useRef } from 'react';
import TableDataBlock from '@/components/TableDataBlock';
import PopImgShow from '@/components/PopImgShow';
import { connect } from 'umi';
import { Space } from 'antd'
const ThirdTrace = (props) => {
    const { dispatch, visible = {}, onClose, loading, list } = props;
    const { show = false, detail = {} } = visible;
    const { id } = props
    const getColumns = [
        {
            title: '操作 ',
            dataIndex: 'traceType',
        },

        {
            title: '操作类别',
            dataIndex: 'subTraceType',
        },
        {
            title: '操作时间',
            dataIndex: 'createTime',
        },
        {
            title: '轨迹明细',
            dataIndex: 'trace',
        },
    ];
    const childRef = useRef();
    return (
        <TableDataBlock
            params={{ organizationUserId: id }}
            cRef={childRef}
            loading={loading}
            columns={getColumns}
            rowKey={(record) => `${record.id}`}
            dispatchType="subscriber/fetchUserThirdTrace"
            {...list}
        ></TableDataBlock>
    );
};
export default connect(({ subscriber, loading }) => ({
    list: subscriber.traceInfoList,
    loading: loading.effects['subscriber/fetchUserThirdTrace'],
}))(ThirdTrace);;
